<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of socket
 *
 * @author Administrator
 */
class Socket extends CLI_Controller{
    /*
     * 我们在构造函数里 创建了一些最基本需求操作
     *
     */
    public function __construct()
    {
        parent::__construct();
        $this->load->library('socket_client');

    }
    public function msg()
    {
        $this->socket_client->get_address('127.0.0.1');
        $this->socket_client->get_port('1234');
        $msg = $this->input->post('msg');
        $this->socket_client->get_socket_message($msg);
	$this->socket_client->init();
    }
}